package com.smart.sso.server.model;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.mvc.model.PersistentObject;

/**
 * 注册用户
 * 
 * @author YM
 */
public class RegisterUser extends PersistentObject {

	private static final long serialVersionUID = 6550611574727966692L;
	
	/** 登录名 */
	private String account;
	/** 密码 */
	private String password;
	/** 角色 */
	private String roleIds;
	/** 角色名称 */
	private String roleNames;
	/** 申请时间 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date registerTime;
	/** 用户留言 */
	private String message;
	
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(String roleIds) {
		this.roleIds = roleIds;
	}
	
	public String getRoleNames() {
		return roleNames;
	}

	public void setRoleNames(String roleNames) {
		this.roleNames = roleNames;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
